<template>
  <div class="root">
    <op-table :tableData="tableData" :tableList="tableList" show-summary @itemEvent="itemEvent">
    </op-table>
    <el-button @click="getData">获取数据</el-button>
  </div>
</template>
<script setup>
import { tableData, tableList } from './config.js';

function itemEvent(data) {
  console.log(data, 'datadata');
}

function getData() {
  console.log(tableData, 'tableData');
}
</script>
<style lang="scss" scoped>
.root {
  width: 100vw;
  height: 100vh;
  padding: 15px;
  box-sizing: border-box;
}
</style>
